package xx.iverson.listening_manager.service;

import xx.iverson.listening_manager.entity.CategoryLevel1;
import xx.iverson.listening_manager.entity.CategoryLevel2;
import xx.iverson.listening_manager.result.ReturnResult;

import java.util.List;

/**
 * xx.iverson.listening_manager.service.CategoryService
 * 描述：
 * on 2025/10/16-下午5:43
 *
 * @author weijx
 */

public interface CategoryService {

    // 一级分类
    List<CategoryLevel1> getAllLevel1();
    ReturnResult<CategoryLevel1> getLevel1ById(Integer categoryId);
    ReturnResult<Boolean> addLevel1(CategoryLevel1 category);
    ReturnResult<Boolean> updateLevel1(CategoryLevel1 category);
    ReturnResult<Boolean> deleteLevel1(Integer categoryId);

    // 二级分类
    List<CategoryLevel2> getAllLevel2();
    List<CategoryLevel2> getLevel2ByCategoryId(Integer categoryId);
    ReturnResult<CategoryLevel2> getLevel2ById(Integer subcategoryId);
    ReturnResult<Boolean> addLevel2(CategoryLevel2 subcategory);
    ReturnResult<Boolean> updateLevel2(CategoryLevel2 subcategory);
    ReturnResult<Boolean> deleteLevel2(Integer subcategoryId);
}
